20. GPIO Commands > 20.8 AT^SCCNT   Configure Pulse Counter

20.8
AT^SCCNT   Configure Pulse Counter
The AT^SCCNT write command serves to configure the GPIO10 pin as pulse counter. The pulse counter is designed to measure signals from 0 to 1000 pulses per second.

Remember that if the GPIO10 line is configured as GPIO (see AT^SCPIN) any attempt to activate the pulse counter will be rejected. Vice versa, if the pulse counter is opened the GPIO10 line cannot be configured as GPIO.

See also [2] for further detail on the pulse counter.
Syntax
Test Command  
Response(s)
^SCCNT:(list of supported <action>s), (list of supported <mode>s), (list of supported <limit>s)
Read Command  
Response(s)
Write Command  
Response(s)
Reference(s) 
PIN 
ASC0 
ASC1 
USB 
MUX1 
MUX2 
MUX3 
Charge 
Last 

Unsolicited Result Code
^SCCNT: <time>
The URC applies only to the Limit counter mode set with parameter <mode>=1. It is delivered once the pulse counter has completed counting the number of pulses requested with parameter <limit>.

Parameter Description
 
0
Close pulse counter
1
Open pulse counter
 
<mode>(num)
0
Activates the Start-Stop counter mode.
After setting this mode, use AT^SSCNT and the <action> parameter to start or stop the pulse counter or to read out the measured pulses.
1
Activates the Limit counter mode and immediately starts the pulse counter. Parameter <limit> is mandatory for this mode.
 
<limit>(num)
1...65534
Number of pulses to be counted.
Parameter <limit> applies only to the Limit counter mode and is mandatory for this mode. Once the given number of pulses is reached, the ME sends one single URC "^SCCNT" which indicates the parameter <time>.
 
<time>(num)
1...4294967295
Time (in milliseconds) taken to count the number of pulses specified with <limit>.


Note
•